home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Sound
/
Utilities
/
K1 Librarian 1.0.0
/
Sample Scripts
/
19 Send All Dump Request
< prev
next >
Wrap
Text File
|
1994-05-30
|
529b
|
20 lines
tell application "K1 Librarian"
-- activate
set ch to 14 -- set MIDI channel (1 - 16)
set kind to 0 -- set single/multi
-- 0 for single
-- 1 for multi
set ie to 1 -- set I,i,E,e
-- 0 for I
-- 1 for i
-- 2 for E
-- 3 for e
if (ie = 0) then set temp to 0
if (ie = 1) then set temp to 32
if (ie = 2) then set temp to 4096
if (ie = 3) then set temp to 32 + 4096
if (kind = 1) then set temp to temp + 2
if (kind = 0 and (ie = 1 or ie = 3)) then set temp to temp + 1
All Dump Request {(ch - 1) * 256 + temp}
end tell